package com.ocean.entity.library;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocean.entity.edu.Student;
import lombok.Data;

import java.util.Date;

/**
 * Project：SchoolManage
 * Package：com.ocean.entity.library
 * Author:zy
 * Time:2023/3/3
 */

@Data
public class Record {
    private Integer id;
    @ExcelProperty("caid")
    private Integer caid;
    @ExcelProperty("bid")
    private Integer bid;
    @ExcelProperty("bdate")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date bdate;
    @ExcelProperty("rdate")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date rdate;
    //一对一关系
    @ExcelIgnore
    private Student student;
    @ExcelIgnore
    private Book book;
}
